package com.starblink.frame.base.activity

import android.os.Bundle
import androidx.viewbinding.ViewBinding
import com.starblink.frame.base.BaseViewModel

abstract class BaseTVMActivity<T : ViewBinding, VM : BaseViewModel> : AbsVMActivity<VM>() {

    protected lateinit var viewBinding: T

    abstract fun initViewBinding(): T

    override fun onCreate(savedInstanceState: Bundle?) {
        viewBinding = initViewBinding()
        super.onCreate(savedInstanceState)
        setContentView(viewBinding.root)

    }
}